var child_process = require('child_process');

//子父之间的通信
const child1 = child_process.fork('./childB01.js', {
    silent: false
});

child1.on('message', (msg) => {
    console.log('from child:', msg);
    child1.send({from: 'parent'});
});
